package cn.ratel.kit;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class HtmlKit {
	public static String cleanHtmlTag(String html) {
		if (StrKit.isBlank(html)) {
			return "";
		}
		String regHtmlTag = "<[^>]+>"; // 定义HTML标签的正则表达式
		Pattern pattern = Pattern.compile(regHtmlTag, Pattern.CASE_INSENSITIVE);
		Matcher matcher = pattern.matcher(html);
		return matcher.replaceAll("");
	}
}
